
			function clknw(url) {
				return url = url + '&referUrl=' + encodeURIComponent(document.referrer);
			}
			
			function k(o,tu) {o.href = tu;}
			var l = "" + window.location;

			function gs(id) {
				return document.getElementById(id).style;
			}
			
			function ytc(color) {				
				if (color!=null) {
					var c = color.match(/[0-9A-Fa-f]{6}/);
					return (c!=null)&&(c[0].length==color.length);
				}
				return false;
			}
			
			function b(pm){
				var s=pm+'=([^&]*)&?';
				var o=new RegExp(s);
				if (o.test(l)){
					return RegExp['$1'];
				} else {
					return null;
				}
			}
						
			function a(){
			    var minWidth = 100;	
			    var minHeight = 40;	
				var bgc=b('bgc');
				var bc=b('bc');
				var ads = b('&a');
				var width = b('&w');
				var height = b('&h');
				
				if( (bgc!=null)&& (ytc(bgc)) ){
					gs('iab-container').background='#'+bgc;
				}
				
				if( (bc!=null)&& (ytc(bc)) ){
					gs('container').border='1px solid #'+bc;
				}

				var trs = document.getElementsByTagName("TR");
				var trCount = (trs.length>0)?(trs.length):1;
				var trHeight = null;
				var tdWidth = null;
				
				if( isNaN(height)||(height < minHeight)){
					height = document.body.scrollHeight - 5;
				}
				if( isNaN(width) ||(width < minWidth)){
					width = document.body.scrollWidth;
				}
				if( isNaN(ads) || ads < 1 ){
					ads = 1;
				}
										
				trHeight = (height-2)/trCount + 'px';	
				gs('container').height = height + 'px';				
				for(var i=0; i<trCount; i++){
					trs[i].style.height = trHeight;	
				}

   				tdWidth = ((width-2)*trCount)/ads + 'px';
   				gs('container').width = width + 'px';
   				var tds = document.getElementsByTagName("TD");
   				for(var j=0; j<tds.length; j++){
   				    if( b('t') == '1' ){
   				    	var imgs = tds[j].getElementsByTagName('IMG');
   				    	if( imgs != null && imgs.length > 0 ){
   				        	imgs[0].style.height = height;
   				        	imgs[0].style.width = width;
   				        }
				    	var imgs = tds[j].getElementsByTagName('DIV');
				    	if( imgs != null ){
				    	    for(var i=0; i<imgs.length; i++){
				    	       if( imgs[i].className == 'flvst' ){
					        	   imgs[i].style.height = height;
					        	   imgs[i].style.width = width;
			        	   		}			        		}
			        	}
   				    }
   					tds[j].style.width = tdWidth;	
   				}
     			var spans = document.getElementsByTagName("SPAN");
     			if(spans && spans.length>0) {
     				spans[0].style.width = width+"px";
     				spans[0].style.height = height+"px";
     			}
     			var embeds = document.getElementsByTagName("embed");
               	if(embeds && embeds.length>0) {
                       embeds[0].style.width = width+"px";
                       embeds[0].style.height = height+"px";
               	}
			}